package ini_reader

// Watch : when changes occur in file, return the new ini
func Watch(ls Listener, filePath string) (config, error) {
	err := ls.Listen(filePath)
	cfg := Load(filePath)
	if err != nil {
		return cfg, err
	}
	return cfg, nil

}